import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-07-18
 * Time: 10:55
 */
public class Test {
    public static void main(String[] args) {
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        MyHeap myHeap = new MyHeap();
        myHeap.initHeap(array);
        myHeap.createHeap();
        System.out.println(Arrays.toString(myHeap.elem));

        myHeap.poll();
        System.out.println(Arrays.toString(myHeap.elem));

        /*myHeap.heapSort();
        System.out.println(Arrays.toString(myHeap.elem));
        System.out.println();*/
    }
}
